/**
 * @对终端输入的字符进行分类
 *
 * @author	 wangshikun <wangshikun2010@gmail.com>
 * @copyright	(c) 2012 wangshikun <wangshikun2010@gmail.com>
 * @license	http://www.opensource.org/licenses/mit-license.php The MIT License
 * @package	default
 * @subpackage	default
 */

#include <stdio.h>
#include <cs50.h>
#include <stdlib.h>

int main(int argc, char *argv[]) {
	char c;

	printf("请输入一个字符：");
	scanf("%c", &c);

	if (c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z') {
		printf("%c is char\n", c);
	} else if (c >= '0' && c <= '9') {
		printf("%c is number\n", c);
	} else {
		printf("%c is special character\n", c);
	}
}
